package itsm.isperp.module.repository.wechat.cp;

import itsm.isperp.framework.data.mybatis.dao.TreeNodeMapper;
import itsm.isperp.module.entity.wechat.cp.WechatCpMenu;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 
 * 
 * 
 * @author lizx
 * @date 2014-5-31
 * @since 1.0
 * 
 */
@Repository
public interface WechatCpMenuMapper extends TreeNodeMapper<WechatCpMenu> {
	
	/**
	 * 根据父级id查找
	 * 
	 * @param parentId
	 *            父级id
	 * @return 系统菜单列表
	 */
	public List<WechatCpMenu> findByParentId(String parentId);

	public WechatCpMenu findOneByKey(@Param("menuKey") String menuKey);
}
